<?php

namespace App\Http\Controllers\Api;


use App\Http\Controllers\Controller;
use App\library\services\AgentService;
use Illuminate\Http\Request;


class Agent extends Controller
{
    //聊天经纪人获取
    public function getAgentInfo(Request $request)
    {
        $id = $request->get('id');
        if (!is_numeric($id)){
            return $this->fail('参数错误');
        }
        $data = \App\Models\Agent::where('id',$id)->first()->toArray();
        return $this->success('成功',$data);
    }
}
